
var rule = {
	title:'麦田影视',
	host:'http://172.247.227.203:25321',
	homeUrl:'/mtys.php/v6/index_video',
	url:'/mtys.php/v6/video?pg=fypage&tid=fyclass&class=&area=&lang=&year=&order=time',
	detailUrl:'/mtys.php/v6/video_detail?id=fyid',
	searchUrl:'/mtys.php/v6/search?pg=1&tid=0&text=**',
	class_name:'电影&电视剧&综艺&动漫&短剧',
	class_url: '1&2&3&4&26',
	searchable: 2,//是否启用全局搜索,
	quickSearch: 0,//是否启用快速搜索,
	filterable: 0,//是否启用分类筛选,
	timeout: 5000,
	推荐: $js.toString(() => {
		let d = [];
		let str=fetch(input);
		let list=JSON.parse(str).data[0].vlist;
		list.forEach(it => {
			d.push({
				url:it.vod_id,
				title: it.vod_name,
				desc: it.vod_remarks,
				img: it.vod_pic
			})
		});
		setResult(d);
	}),
	一级: $js.toString(() => {
		let khtml = fetch(input);
		let kjson = JSON.parse(khtml);
		VODS = kjson.data
	}),
	二级:$js.toString(() => {
		let str=fetch(input);
		let jsony=JSON.parse(str).data.vod_info;
		let ktabs = jsony.vod_url_with_player.map((it) => { return '' + it.name});
		let kurl = jsony.vod_url_with_player.map((it) => {
			if (/#/.test(it.url)) {
				return `${it.url.replaceAll("#","*"+it.parse_api+"*"+it.name+"#")}`
			} else {
				return `${it.url}*${it.parse_api}*${it.token}*${it.name}`
			}
		});
		VOD = {
			vod_name:jsony.vod_name,
			type_name: jsony.vod_class,
			vod_pic: jsony.vod_pic,
			vod_remarks: jsony.vod_remarks,
			vod_year: jsony.vod_year,
			vod_area:jsony.vod_area,
			vod_lang:jsony.vod_lang,
			vod_actor:jsony.vod_actor,
			vod_content:jsony.vod_content+input,
			vod_play_from: ktabs.join('$$$'), 
			vod_play_url: kurl.join('$$$')
		};
	}),
	play_parse: true,
	lazy: $js.toString(() => {
		let kurl = input.split('*')[0];
		let kjx = input.split('*')[1];
		let ktab = input.split('*')[2];
		if (/\.m3u8/.test(kurl)) {
			input = { jx: 0, parse: 0, url: kurl }
		} else if (/NBY/.test(kurl)) {
			kurl = JSON.parse(fetch(kjx+kurl)).url;
			input = { jx: 0, parse: 0, url: kurl }
		} else {
			input = { jx: 0, parse: 1, url: kurl }
		}
	}),
	搜索:'*'
}